package com.zhuang.sms;

import com.zhuang.sms.netty.NettyWebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class FeeCrawlServiceApplication implements CommandLineRunner {

	@Autowired
	private NettyWebSocketServer webSocketServer;

	public static void main(String[] args) {
		SpringApplication.run(FeeCrawlServiceApplication.class, args);
	}


	@Override
	public void run(String... args) throws Exception {
		webSocketServer.start();
	}
}